package com.zcx.excel.service.impl;

import com.zcx.excel.mapper.PriceMapper;
import com.zcx.excel.pojo.Price;
import com.zcx.excel.pojo.PriceExample;
import com.zcx.excel.service.PriceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhaochangxin
 * @Title: PriceServceImpl
 * @Package com.zcx.exceldemo.serivce.impl
 * @Description: Price的业务层
 * @date 2022/3/25 10:48
 */
@Service
public class PriceServiceImpl implements PriceService {
    @Autowired
    PriceMapper priceMapper;

    @Override
    /**
    　* @author zhaochangxin
    　* @Description:${todo}
    　* @Param priceExample: 
    　* @return: java.util.List<com.zcx.exceldemo.pojo.Price>
    　* @date 2022/3/25 10:49
    　*/
    public List<Price> queryAllPriceList(PriceExample priceExample) {
        return priceMapper.selectByExample(priceExample);
    }

    @Override
    public void insertPrice(Price price) {
        priceMapper.insert(price);
    }
}
